package com.Smart.smartscals.Fragment;

import javax.crypto.Mac;

import com.Smart.smartscals.Activity.ActivityGuide;
import com.Smart.smartscals.Activity.R;
import com.Smart.smartscals.Adapter.ArrayWheelAdapter;
import com.Smart.smartscals.CustomView.CustomScrovieView;
import com.Smart.smartscals.CustomView.CustomWheelView;
import com.Smart.smartscals.Entity.EntityWheelView;
import com.Smart.smartscals.Utils.Const;
import com.Smart.smartscals.Utils.Tools;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;

public class FragmentStartUsing extends BaseFragment {

	private Button btnStarUsing, btnLogIn;
	public ActivityGuide mActivityGuide;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);

	}

	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		mActivityGuide = (ActivityGuide) this.getActivity();
		initView();
		initParam();
		setListener();
	}

	private void initParam() {

	}

	private void setListener() {
		btnStarUsing.setOnClickListener(this);
		btnLogIn.setOnClickListener(this);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		mView = inflater.inflate(R.layout.activity_guide_start, null);
		return mView;
	}

	private void initView() {
		btnLogIn = (Button) mView.findViewById(R.id.gudite_start_btn_login);
		btnStarUsing = (Button) mView
				.findViewById(R.id.gudite_start_btn_startusing);

	}

	@Override
	public void onClick(View arg0) {
		switch (arg0.getId()) {
		case R.id.gudite_start_btn_login:
			

			loginDojon();
			break;

		case R.id.gudite_start_btn_startusing:// stat useing

			nextDoJOb();

			break;

		default:
			break;
		}
	}

	private void loginDojon() {
		// TODO Auto-generated method stub
		Tools.startFragment(mActivityGuide,
				mActivityGuide.getmFragmentGudeLogin());
	}

	private void nextDoJOb() {
		// mActivityGuide.getmFragmentTransaction().

		Tools.startFragment(mActivityGuide,
				mActivityGuide.getMfragmentGudeName());

	}

}
